﻿using BW.Demo.ErrorCode;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace BW.Demo.WebApi.Applications.Commands.Upd
{
    public class AquacultureUpdCommand:IRequest<APIResult<int>>
    {
        /// <summary>
        /// 主键
        /// </summary>
       
        public int CultivationId { get; set; }

        /// <summary>
        /// 生产批次
        /// </summary>
        [MaxLength(50)]
        public string Batch { get; set; } = string.Empty;

        /// <summary>
        /// 品种
        /// </summary>
        [MaxLength(30)]
        public string Variety { get; set; } = string.Empty;

        /// <summary>
        /// 来源
        /// </summary>
        [MaxLength(50)]
        public string Source { get; set; } = string.Empty;

        /// <summary>
        /// 饲养天数
        /// </summary>
        public int FeedDay { get; set; }

        /// <summary>
        /// 饲料品牌
        /// </summary>
        [MaxLength(30)]
        public string Feedbrand { get; set; } = string.Empty;

        /// <summary>
        /// 饲养负责人
        /// </summary>
        [MaxLength(30)]
        public string Headfeeding { get; set; } = string.Empty;

        /// <summary>
        /// 出栏日期
        /// </summary>
        public DateTime LeaveDate { get; set; }
    }
}
